Title Banner


Technical Q&A's


TB34 - White Backgrounds for Dialog editText Items
(13-October-97)


Q I would like to have a colored background for my dialog box but I would like the TextEdit fields in my dialog box to be white. Is this possible to do? Is there some sample code available?

A Generally speaking, this coloring is achieved via resources, not code. In addition to the 'dctb' resource, you need to create an 'ictb' resource. To download a sample of an application using this kind of resource click here.

The 'ictb' resource is documented on page 6-76 and starting again on page 6-158 of
Inside Macintosh: Macintosh Toolbox Essentials. The best way I know of to create and edit 'ictb' resources is with Resorcerer, but you can also create them with a '.r' file compiled by either MPW's Rez or the Metrowerks CodeWarrior equivalent.

Here are some references to web sites for the aforementioned tools:

If this response has failed to adequately address a question or has raised more questions than it answered, please feel free to let us know and we'll try again.



-- Pete Gontier
devsupport@apple.com

Technical Support
Technical Q&As
Previous Question | Contents

Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help